package com.ygqh.baby.service;
import java.util.List;

import  com.ygqh.baby.ao.QueryInfo;
import  com.ygqh.baby.ao.ResultSet;
import  com.ygqh.baby.po.YgMaterial;

public interface YgMaterialService {

    
    List<YgMaterial> find();
	int findCount();
	YgMaterial findById(Long id);
	int deleteSoft(Long[] ids);
	int deleteSoft(Long id);
	int save(YgMaterial ygMaterial );
	int update(YgMaterial ygMaterial);
	int saveOrUpdate(YgMaterial ygMaterial);
	ResultSet<YgMaterial> search(QueryInfo queryInfo,String q);
	int findName(String name,Long id);
	List<YgMaterial> findByNameList(List<String> materialList);
    
}
